package com.studyv3.test.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * lb_采购批次
 * </p>
 *
 * @author author
 * @since 2024-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("batch")
@ApiModel(value="Batch对象", description="lb_采购批次")
public class BatchBo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "批次id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "批次号（xxxx年第x批）")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "是否开放申请 0 关闭 1 开放")
    @TableField("io")
    private Integer io;

    @ApiModelProperty(value = "预开始时间")
    @TableField("start_time")
    private LocalDate startTime;

    @ApiModelProperty(value = "预算")
    @TableField("budget")
    private BigDecimal budget;


}
